package com.jinzhi.jzweb.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreService;
import com.jinzhi.jzapi.certificate.pojo.ExpertsVo;
import com.jinzhi.jzapi.certificate.pojo.MyExpertsVo;
import com.jinzhi.jzapi.training.pojo.TerExpertsVo;
import com.jinzhi.jzweb.domain.ExpertsDO;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 专家表
 * </pre>
 * <small> 2020-02-24 21:00:11 | lance</small>
 */
public interface ExpertsService extends CoreService<ExpertsDO> {

    Page<ExpertsVo> selectListPage(int current, int number, Map map);

    Long selById(Map map);

    Page<MyExpertsVo> selByUserId(int current, int number, Long userId);

    int selNoReviewAll();

    List<Map<Object,Object>> selRandExpList(Map map);
    List<Map<Object,Object>> selOrgRandExpList(Map map);

    List<Map> selByTypeProvince(Map map);
    List<Map> selByTypeNoProvince(Map map);
    List<Map> selByOrgType(Map map);

    List<Map> selTeacher(Map map);

    TerExpertsVo selByUserIdTer(Long userId);

    List<Long> selExpIds(Map map);

}
